from rest_framework import serializers

from secret.models import SecretModel


class SecretModelSerializer(serializers.ModelSerializer):
    name = serializers.CharField(max_length=25, label="名字", min_length=1)
    content = serializers.CharField(allow_blank=True, label="内容")

    class Meta:
        model = SecretModel
        fields = "__all__"
